package com.situ.stmall.manager.service;

import com.github.pagehelper.PageInfo;
import com.situ.stmall.manager.entity.Category;

import java.util.List;

public interface CategoryService {
    /**
     * 添加
     */
    int add(Category category)throws Exception;
    /**
     * 删除
     */
    int remove(Integer id)throws Exception;
    /**
     * 修改
     */
    int edit(Category category)throws Exception;
    /**
     * 查询id
     */
    Category getById(Integer id);
    /**
     * 搜索
     */
    List<Category> search(Category category);

    /**
     * 分页
     * @param page
     * @param limit
     * @param category
     */
    PageInfo searchByPage(Integer page, Integer limit, Category category);
}

